interface MFileProps{
    name:string;
    filesize:number;
    isDir:boolean;
    createTime:string;
    idx?:number;
    path:string;
    url?:string;
    type?:string;
}

class MFile{
  
    filename?:string;
    filesize?:number;
    isDir?:boolean;
    createTime:string = "";
    idx:number = 0;
    path:string = "";
    url?:string;
    type?:string;

    constructor(props:MFileProps){
        this.filename = props.name;
        this.filesize = props.filesize;
        this.isDir = props.isDir;
        this.createTime = props.createTime;
        this.idx = props.idx||0;
        this.path = props.path
        this.url = props.url;
        this.type = props.type;
    }
    
}

export default MFile; 
